Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale ruler marker snap lines correctly #6706

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Scale ruler marker snap lines correctly #6706

merged 1 commit into from
Dec 6, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Dec 6, 2024

Problem:

Scale is applied inconsistently on the snap line and its label during ruler marker resizing.

Fix:

  1. Make sure to scale the label container
  2. Make sure the perceived size of the snapline stays the same regardless of the zoom level

Fixes #6705

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Try me

Copy link

relativeci bot commented Dec 6, 2024

#15377 Bundle Size — 58.21MiB (~+0.01%).

6efcd4b(current) vs d1d46c1 master#15374(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#15377
     Baseline
#15374
Regression  Initial JS 41.18MiB(~+0.01%) 41.18MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.24% 18.57%
No change  Chunks 20 20
No change  Assets 22 22
No change  Modules 4189 4189
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.24% 27.24%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#15377
     Baseline
#15374
Regression  JS 58.2MiB (~+0.01%) 58.2MiB
Improvement  HTML 9.4KiB (-0.21%) 9.42KiB

Bundle analysis reportBranch fix/snapline-scaleProject dashboard


Generated by RelativeCIDocumentationReport issue

@ruggi ruggi merged commit 7bca70d into master Dec 6, 2024
16 checks passed
@ruggi ruggi deleted the fix/snapline-scale branch December 6, 2024 10:19
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

Scale is applied inconsistently on the snap line and its label during
ruler marker resizing.

**Fix:**

1. Make sure to scale the label container
2. Make sure the perceived size of the snapline stays the same
regardless of the zoom level

Fixes #[6705](#6705)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants